﻿// This class is used to store information about the widget.
function ParametersObject()
{
    // Default parameters
    this.defaultHeight = 300;
    this.defaultWidth = 200;
    this.defaultPage = 3;
    
    
    // Sliding window parameters
    this.slideDelay = 100;
    this.scrollOn;
    
    this.layoutExpired = DEFAULT_LAYOUT_EXPIRED;
    this.layoutToday = DEFAULT_LAYOUT_TODAY;
    this.layoutNearToExpire = DEFAULT_LAYOUT_NEAR;
    this.layoutTask = DEFAULT_LAYOUT_TASK;


    this.layout = [];
    this.layout[PSTATE_EXPIRED] = this.layoutExpired;
    this.layout[PSTATE_TODAY] = this.layoutToday;
    this.layout[PSTATE_NEAR] = this.layoutNearToExpire;
    this.layout[PSTATE_TASK] = this.layoutTask;
    
    this.username="";
    this.password="";
    
}

ParametersObject.prototype.setLayout = function(field, layout){
	this.layout[field] = layout;
};

ParametersObject.prototype.getLayout = function(field){
	return this.layout[field];
};

parameters = new ParametersObject();
